﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Zhp.Api.Attributes;
using Zhp.Api.Controllers.Sys;

namespace Zhp.Api.Controllers.Hangfire
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class HealthController : ControllerBase
    {
        private readonly ILogger<HealthController> _logger;
        public HealthController(ILogger<HealthController> logger)
        {
            _logger = logger;
        }

        [NotAuditLog]
        [AllowAnonymous]
        [HttpGet]
        public Task Get()
        {
            _logger.LogInformation("JOB检查");

            return Task.CompletedTask;
        }
    }
}
